<template>
    <div>
        <ul>
            <li-list v-for="(item,index) in list" :title="item.title" :con="item.con"></li-list>
        </ul>
    </div>
</template>
<script>
import LiList from '@/liList'
import axios from 'axios'
export default {
    data(){
        return {
            msg:'hello world',
            list:[]
        }
    },
    components:{
        LiList
    },
    created(){
        axios.get('/api/list').then((res) => {
            if(res.data.code === 1){
                this.list = res.data.data
            }
        })
    }
}
</script>
<style>
div{
    color:blue;
}
</style>


